<?php
/**
 * Created by PhpStorm.
 * User: Admin
 * Date: 2018/7/26
 * Time: 11:55
 */
class API {
    public function api($parameter="", $option = "foo") {
        return $parameter;
    }
    protected function client_can_not_see() {
    }
}
$service = new Yar_Server(new API());
$service->handle();